-
Notifications
You must be signed in to change notification settings - Fork 282
feat: Support schema property examples #1165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support schema property examples #1165
Conversation
Hi @dsuket, can you rebase and resolve conflicts? |
@sserrata Sorry for the late reply. I've updated the branch and confirmed that it's working as expected. Thank you. |
Visit the preview URL for this PR (updated for commit ae4a06d): https://docusaurus-openapi-36b86--pr1165-1l5b7pz6.web.app (expires Fri, 01 Aug 2025 02:44:59 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
Visual Diff SummaryTotal: 77, Matches: 58, Diffs: 19, Skipped: 0
|
Hi @dsuket, similar to #1164, both the autogenerated and static example/examples are already rendered in the API Explorer component (for requests). I'm not sure we necessarily want to duplicate that in the main doc panel. That aside, I do think we should merge the enhancements made to property examples. Since we're not yet decided would it be too much to create a separate PR for the property example/examples support? |
I submitted a PR for the extracted property examples in #1198. I'll close this one. |
Description
Support examples of schema property
Motivation and Context
To address Issue #1158, I need to organize the example-related parts.
This is the 4th(final) step toward that goal.
Please see below first.
How Has This Been Tested?
npm run build
npm run test
Screenshots (if appropriate)
example in request parameters schema
examples in request parameters schema
example of properties in requestBody schema
examples of properties in requestBody schema
example of schema properties in response
examples of schema properties in response
Types of changes
Checklist